package com.xing.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName(value = "live_tag")
@NoArgsConstructor
@AllArgsConstructor
public class LiveTagEntity {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签类型(0:系统标签,1:自定义标签)
     */
    private Integer type;

    /**
     * 创建者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creator;

    /**
     * 逻辑删除
     */
    private Integer delFlag;
}
